# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xkeyboard-config
pkgver=2.40
pkgrel=0
pkgdesc="X keyboard configuration files"
url="https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config"
arch="noarch"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends_dev="$pkgname"
makedepends="gettext meson perl libxslt"
checkdepends="gawk"
source="https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/archive/xkeyboard-config-$pkgver/xkeyboard-config-xkeyboard-config-$pkgver.tar.gz
	mktemp-busybox-compat.patch
	"
builddir="$srcdir"/xkeyboard-config-xkeyboard-config-$pkgver

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
70b7f52772091fd7e8f0ce66cd81e06d4c91a6d015ce79b41743879f71d8ea1e7c55c516d243140b1bfdc2e5ed37fd8ddd727ff11d6752e2c9de96c71a263e7e  xkeyboard-config-xkeyboard-config-2.40.tar.gz
b43660d37754f217bd37dbc9caa2568ad1363e3c155c3928e5eb5e335256d62a144bbeac0fc066c8108f87073d3b465694e17a2f1222e77bc3e4d510dda28228  mktemp-busybox-compat.patch
"
